#include <stdio.h>
#include <arpa/inet.h>
int main(int argc,const char*argv[])
{
   unsigned int src = 0x12345678;
   unsigned int dest = htonl(src);
   printf("%#x -> %#x \n",src,dest);
    return 0;
}